
<link href="../addons/jy_weishop/custom/templates/mobile/css/verifyorder.css?v=2.0.3"rel="stylesheet"type="text/css"/>

<div class='fui-page fui-page-current'>
    <div class="fui-header fui-header-success">
        <div class="fui-header-left">
            <a class="back"></a>
        </div>
        <div class="title">订单管理</div>
    </div>

    <!-- 顶部tab -->
    <div id="tab" class="fui-tab fui-tab-success fixed">

        <!--<a {if $type==0}class="active"{/if} data-type="0">全部订单</a>-->
        <!--<a {if $type==1}class="active"{/if} data-type="1">核销统计</a>-->
        <a data-tab="all" class="active">全部订单</a>
        <a data-tab="count">核销统计</a>
        <!--<a {if $type==7}class="active"{/if} data-type="7">七日</a>-->
        <!--<a {if $type==30}class="active"{/if} data-type="30">本月</a>-->
    </div>

    <div class='fui-content'>
        <div class="tab-content " id="tab_all" style="display: block">
                <!-- 搜索框 -->
                <div class="fui-search">
                    <div class="inner">
                        <i class="icon icon-search"></i>
                        <div class="select">
                            <select id="searchfieid">
                                <option value='ordersn' ng-if="pagedata.searchfield=='ordersn'" selected>订单号</option>
                                <option value='verifycode' ng-if="pagedata.searchfield=='verifycode'" selected>核销码</option>
                                <option value='member' ng-if="pagedata.searchfield=='member'" selected>会员姓名</option>
                                <option value='address' ng-if="pagedata.searchfield=='address'" selected>收件人姓名</option>
                                <option value='expresssn' ng-if="pagedata.searchfield=='expresssn'" selected>快递单号</option>
                                <option value='goodstitle' ng-if="pagedata.searchfield=='goodstitle'"selected>商品名称</option>
                                <option value='goodssn' ng-if="pagedata.searchfield=='goodssn'"selected>商品编码</option>
                            </select>
                        </div>
                        <input value="{$_GPC['keyword']}" placeholder="输入关键字..." id="keywords" />
                    </div>
                    <div class="fui-search-btn">搜索</div>
                </div>
                <!-- 订单列表 -->
                <div class="fui-list-outer container"></div>

                <div class="fui-title center" id="content-more">加载更多</div>
                <div class="fui-title center hide" id="content-empty">没有数据</div>
                <div class="fui-title center hide" id="content-nomore">没有更多了</div>
        </div>
        <div class="tab-content " id="tab_count">
            <div class="verification">
                <div class="verification-title">
                    今日核销
                </div>
                <div class="verification-middle">
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-orange"></span>
                            <p>核销量</p>
                        </div>
                        <div class="verification-num">{{pagedata.order0.count}}</div>
                    </div>
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-green"></span>
                            <p>核销额</p>
                        </div>
                        <div class="verification-num">¥{{pagedata.order0.price}}</div>
                    </div>
                </div>
                <div class="verification-bottom">
                    <div class="verification-bottom-left">
                        <p>核销员</p>
                        <p>核销数</p>
                        <p>核销额</p>
                    </div>
                    <div class="verification-bottom-right">
                        <ul ng-repeat="(key,item) in pagedata.order0.saler" {if count($order0['saler'])>2}style="width:{php echo count($order0['saler'])*5}rem"{/if}>
                       
                        <li ng-if="pagedata.all_verifyorder">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                     
                        <li ng-if="!pagedata.all_verifyorder && key==pagedata.mid">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                    
                        </ul>
                    </div>
                </div>
            </div>
            <div class="verification">
                <div class="verification-title">
                   七日核销
                </div>
                <div class="verification-middle">
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-orange"></span>
                            <p>核销量</p>
                        </div>
                        <div class="verification-num">{{pagedata.order7.count}}</div>
                    </div>
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-green"></span>
                            <p>核销额</p>
                        </div>
                        <div class="verification-num">¥{{pagedata.order7.price}}</div>
                    </div>
                </div>
                <div class="verification-bottom">
                    <div class="verification-bottom-left">
                        <p>核销员</p>
                        <p>核销数</p>
                        <p>核销额</p>
                    </div>
                    <div class="verification-bottom-right">
                        <ul ng-repeat="(key,item) in pagedata.order0.saler" {if count($order7['saler'])>2}style="width:{php echo count($order7['saler'])*5}rem"{/if}>
                                           
                          <li ng-if="pagedata.all_verifyorder">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                     
                        <li ng-if="!pagedata.all_verifyorder && key==pagedata.mid">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                
                        </ul>
                    </div>
                </div>
            </div>
            <div class="verification">
                <div class="verification-title">
                    本月核销
                </div>
                <div class="verification-middle">
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-orange"></span>
                            <p>核销量</p>
                        </div>
                        <div class="verification-num">{$order30['count']}</div>
                    </div>
                    <div class="verification-middle-div">
                        <div class="verification-middle-top">
                            <span class="verification-green"></span>
                            <p>核销额</p>
                        </div>
                        <div class="verification-num">¥{$order30['price']}</div>
                    </div>
                </div>
                <div class="verification-bottom">
                    <div class="verification-bottom-left">
                        <p>核销员</p>
                        <p>核销数</p>
                        <p>核销额</p>
                    </div>
                    <div class="verification-bottom-right">
                        <ul  ng-repeat="(key,item) in pagedata.order0.saler" {if count($order30['saler'])>2}style="width:{php echo count($order30['saler'])*5}rem"{/if}>
                         
                       <li ng-if="pagedata.all_verifyorder">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                     
                        <li ng-if="!pagedata.all_verifyorder && key==pagedata.mid">
                            <p>{{item.name}}</p>
                            <p>{{item.count}}</p>
                            <p>{{item.price}}</p>
                        </li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <script type="text/html" id="tpl_order">
		<div ng-repeat="item in pagedata.list">
       
        <div ng-if="item.merchname && item.merchid>0" class="fui-title small"><i class="icon icon-shop"></i> {{item.merchname}}</div>
        <div ng-if="item.merchname && item.merchid>0" class="fui-list-group nomargin" data-order="{{item.id}}">
        <div ng-if="!item.merchname || item.merchid<=0"class="fui-list-group" data-order="{{item.id}}">

            <a class="fui-list order-list title-b" href="javascript:;" ng-click="access_json('jy_weishop/verify.verifyorderdetail//id='+item.id)" data-nocache="true">
                <div class="fui-list-media">
                    <span ng-if="item.statusvalue==0" class="fui-label fui-label-danger round"> {{ifelse(item.paytypevalue!=3,'未支付','货到付款')}}</span>
                    <span ng-if="item.statusvalue!=0" class="fui-label fui-label-danger round">{{item.paytype}}</span>
                </div>
                <div class="fui-list-inner">
                    <div class="row">
                        <div class="row-text" style="font-size: 0.7rem; color: #666">{{item.ordersn}}</div>
                    </div>
                    <div class="row gary">
                        <div class="row-text">{{item.createtime}}</div>
                    </div>
                </div>
                <div class="angle"></div>
            </a>
          
            <div ng-repeat="g in item.goods" class="fui-list goods-list">
                <div class="fui-list-media">
                    <img class="round" ng-src="{{tomedia(g.thumb) || '../addons/jy_weishop/images/nopic100.jpg'}}" />
                </div>
                <div class="fui-list-inner">
                    <div class="title">{{g.title}}</div>
                    <div class="subtitle">
                        <div class="total">规格: {{g.optiontitle||"无"}} 编码: {{g.goodssn||"无"}}</div>
                    </div>
                </div>
                <div class="fui-list-angle auto">￥<span class="marketprice">{{g.realprice/g.total}}<br> x{{g.total}}</span></div>
            </div>
           
            <div class="fui-list log-list noclick">
                <div class="fui-list-inner">
                    <div class="row log-row order">
                        <div class="row-text">订单状态</div>
                        <div class="row-remark"><span class="text-danger">{{item.status}}</span></div>
                    </div>
                  
                    <div ng-if="item.merchname && item.merchid" class="row log-row order">
                        <div class="row-text">店铺名称</div>
                        <div class="row-remark">{{item.merchname}}</div>
                    </div>
                 
                    <div class="row log-row order">
                        <div class="row-text">买家昵称</div>
                        <div class="row-remark">{{item.nickname||'未更新'}}</div>
                    </div>
                    <div class="row log-row order">
                        <div class="row-text">核销时间</div>
                        <div class="row-remark"><span class="text-success">{{item.verifytime}}</span></div>
                    </div>

                </div>
            </div>

            <div class="fui-list-group-title text-left">
                <small class="status">共<span class="text-success">{{item.goodscount}}</span>个商品 实付:<span class="text-success">￥{{item.price}}</span>{{ifelse(item.dispatchprice!='0.00','含运费: ￥{{item.dispatchprice}}元','')}}</small>
            </div>

        </div>
		<div>
        
    </script>
</div>
